package com.wn32.main.demo;

public class DiGui {
    //递归计算5!
    public static void main(String[] args) {
        int jc = getJC(5);
        System.out.println(jc);
    }
    public static int getJC(int i){
        if(i==1){
            return 1;
        }
        return i*getJC(i-1);
    }
}
